package com.graduation.common.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.Getter;

@Getter
public enum RoleEnum {
    ADMIN(0, "管理员"),
    USER(1, "前台用户");

    @JsonValue
    @EnumValue
    private final Integer value;
    private final String desc;

    RoleEnum(Integer value, String desc) {
        this.value = value;
        this.desc = desc;
    }
}
